package system

import (
	"github.com/flipped-aurora/gin-vue-admin/server/global"
)

// SysUserFollow 用户关注关系表
type SysUserFollow struct {
	global.GVA_MODEL
	FollowerID uint    `json:"followerId" gorm:"index;comment:关注者ID"`                // 关注者ID
	FollowedID uint    `json:"followedId" gorm:"index;comment:被关注者ID"`               // 被关注者ID
	Follower   SysUser `json:"follower" gorm:"foreignKey:FollowerID;comment:关注者信息"`  // 关注者信息
	Followed   SysUser `json:"followed" gorm:"foreignKey:FollowedID;comment:被关注者信息"` // 被关注者信息
}

func (SysUserFollow) TableName() string {
	return "sys_user_follows"
}
